package com.itheima.chapter06.innerclass.test2;

public class Test2 {
    public static void main(String[] args) {
         /*
        成员内部类：静态内部类
         */
        //外部类名.内部类名 对象名 = new 外部类对象().内部类对象();
         Outer1.Inner oi = new Outer1.Inner();
         oi.show();
         //静态类中静态方法：外部类名.内部类名.方法名();
         Outer1.Inner.method();
    }
}
class Outer1{
    private int a=55;
    static class Inner{
        int num =10;
        public void show() {
            System.out.println("Inner...show");

        }
        public static void method(){
            System.out.println("Inner...method");
        }
    }

}